package test;

/*
 * Author: JacksonCoder
 * FileName: equalsDemo
 * Version: 1.0.0
 * Date: 2025/7/14
 */

import java.util.HashMap;
import java.util.Map;

public class equalsDemo {

    public static void main(String[] args) {
        Map<String, String> map = new HashMap<String, String>();
//        map.put("SUCCESS", null);
        map.put("SUCCESS", "");
        map.put("FAIL", "true");

        String returnCode = map.get("SUCCESS");
        if ("SUCCESS".equals(returnCode)){
            System.out.println("转账成功");
        }else{
            System.out.println("转账失败");
        }
    }
}
